package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.AppVersion;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.Date;
import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2024-07-31
 */
public interface AppVersionService extends IService<AppVersion> {

    Page<AppVersion> pageList(PageUtil pageUtil, Integer os, Integer forceStatus, Integer enabled);

    int dropBean(Long id);

    List<AppVersion> getMaxCodeByOsAndVersionCode(Integer os, Integer versionCode, boolean selfStatus);

    int updateEnable(Long id, Integer enabled, Date time, String uid, String userName);

    boolean haveVersionCodeOrName(Long id, Integer os, Integer versionCode, String versionName);

}
